package com.zuo.mall.mapper;

import com.zuo.mall.entity.UmsAdminRoleRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zuo.mall.entity.UmsResource;
import com.zuo.mall.entity.UmsRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 后台用户和角色关系表 Mapper 接口
 * </p>
 *
 * @author zuo
 * @since 2023-10-21
 */
@Mapper
public interface UmsAdminRoleRelationMapper extends BaseMapper<UmsAdminRoleRelation> {

    List<UmsResource> selectResourceListByAdminId(Long adminId);

    List<UmsRole> getRoleList(Long adminId);
}
